package implementacionJ48;

import weka.core.Attribute;
import weka.core.Instances;
/*import java.util.Random;

import weka.attributeSelection.CfsSubsetEval;
import weka.attributeSelection.GreedyStepwise;
import weka.classifiers.Evaluation;
import weka.classifiers.meta.AttributeSelectedClassifier;
import weka.classifiers.trees.J48;

import weka.core.converters.ConverterUtils.DataSource;*/

import implementacionJ48.Log;

public class ImplementacionJ48 {

	
	public static void main(String[] args) throws Exception {
		
		//Instances data = TestData.getfromArff("ArchivosArff//prueba2.arff");
		
		Log log = new Log();
		
		log.addMensaje("como un idiota");
		
		System.out.println(log.informacion);
		
		//System.out.print(entropy.calculateInfoX(data, data.firstInstance().attribute(3)) ) ;
		
		//Attribute attr = data.firstInstance().attribute(0);
		//attr.setWeight(0.5);
		
		//System.out.println(attr.weight());
		//System.out.println(Gain.getBestAttribute(data));
		/*System.out.println(Gain.getProporcionGanancia(data, attr)); */
		
		/* Impresion del vector valorOptimoParticion */
		/*for(int i = 0; i < TestData.valorOptimoParticion.length; i++){
			System.out.print(TestData.valorOptimoParticion[i]);
			System.out.print(" ");
		}*/
		
		/* Probar F*/
			//System.out.println(Entropy.calculateF(data, data.attribute(1)));
		
		/*Attribute attr = data.firstInstance().attribute(1);
		Instances selectedData = testData.selectInstancesWhere(data, attr, 0.0);
		System.out.println(selectedData.firstInstance());*/
		
//		System.out.print(entropy.calculateInfoX(data, data.firstInstance().classAttribute()) ) ;
		
		/*System.out.print(data.firstInstance().toString());
		J48 base = new J48();
		
		 base.buildClassifier(data);
		 System.out.println(base.toString());*/
		 
		  
	}
	
	
	
}
